Skip to content

Run page: tooling failures, covered by an open PR, evidence on questions - #258

Merged
nambok merged 1 commit into
mainfrom
feat/stop-discipline
Oct 28, 2026
Merged

nambok merged 1 commit into
mainfrom
feat/stop-discipline

Conversation

@nambok

@nambok nambok commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

The run page for the stop rules in CoderHelm/coderhelm-platform#349:

  • A tooling failure names the exact command and error and is never shown as a question.
  • A run covered by someone's open PR links that PR.
  • A question shows the evidence it cites.

Changes

  • run-status.tsx: adds covered_by_pr, shown as "Covered by an open PR" in the Done group (the runs list's status= filter too).
  • runs/detail/page.tsx:
    • A failed run with stop_kind = tooling shows "Tooling failure", with Command and Error code blocks and what was tried first.
    • covered_by_pr shows "Already being fixed in #N" with the PR's title, author and reason, plus Open #N and Retry.
    • Retry and Start over now allow covered_by_pr.
  • run-questions.tsx: each question lists its evidence (path:line, lookup id).
  • api.ts and openapi-fields.ts: add stop_kind, tooling_failure, covered_by and RunQuestion.evidence, generated from the platform branch's API document.
  • e2e/stop-rules.spec.ts: the three cases, at desktop and phone width, with no sideways scroll, plus Retry on a covered run.

Verification

  • tsc --noEmit passes, and npm run lint passes (ui-lint is at the <pre> baseline; it uses CodeBlock).
  • Playwright stop-rules, run-questions, list-and-palette and round-incomplete: 28 passed.
  • Playwright audit-runs, audit-shell, close-runs and run-trigger: 69 passed.
  • I checked the screenshots at 1440 and 390 wide.

@nambok
nambok force-pushed the feat/stop-discipline branch from 451e9ee to 0792956 Compare October 28, 2026 01:24
…y an open PR link it, questions show their evidence

- A failed run whose stop_kind is tooling shows "Tooling failure" with the
  exact command, the error and what was tried first, never a question.
- New status covered_by_pr ("Covered by an open PR", in Done): the run page
  says "Already being fixed in #N", links the pull request, says why, and
  offers Retry for a ticket that needs its own change.
- A question lists the evidence it cites (path:line or a lookup id).
- api.ts and openapi-fields.ts carry stop_kind, tooling_failure, covered_by
  and RunQuestion.evidence from the platform's API document.
@nambok
nambok force-pushed the feat/stop-discipline branch from 0792956 to 69dd190 Compare October 28, 2026 18:16
@nambok
nambok merged commit 5bb1da5 into main Oct 28, 2026
5 checks passed
@nambok
nambok deleted the feat/stop-discipline branch October 28, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant